import { request } from 'umi';
import { getTenant } from '@/utils';

export async function uploadRequest(url: string, data: any) {
  return request(url, {
    method: 'POST',
    toObj: false,
    data: {
      dataList: data,
    },
    headers: {
      tenantName: getTenant(),
    },
  });
}
